package thread;

import javax.swing.*;
import java.awt.*;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:22954
 * Date:2024-03-06
 * Time:17:05
 */
public class ThreadState extends JFrame{
    MyPanel myPanel = null;
    public static void main(String[] args) {
        new ThreadState();
    }
    public ThreadState(){
        myPanel = new MyPanel();
        super.add(myPanel);
        super.setSize(1100,650);
        super.setVisible(true);
        super.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
}
class MyPanel extends JPanel {
    @Override
    public void paint(Graphics g) {
        Image image = Toolkit.getDefaultToolkit().getImage(MyPanel.class.getResource("/thread/线程状态图.png"));
        g.drawImage(image,24,15,this);
    }
}
